package controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/first")
public class FirstController {
    @RequestMapping("/a")
    public String a(){
        System.out.println("访问了FirstController`a Method!");
        return "index";
    }
    @RequestMapping("/b")
    public String b(){
        System.out.println("访问了FirstController`b Method!");
        return "index";
    }
}
